package thread.readwritelock;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author lwmzzz
 * @version 1.0
 * @date 2021/5/12 23:53
 * @description
 */
public class Test01 {
    public static final ReadWriteLock lock = new ReentrantReadWriteLock();

    public static void main(String[] args) {

        Lock writeLock = Test01.lock.writeLock();
        Lock readLock = Test01.lock.readLock();
    }
}
